/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tallerfinal.util.distributions;

/**
 *
 * @author ricardo
 */
public abstract class Generator<T extends Number> {
    
    protected final MersenneTwisterFast generator = new MersenneTwisterFast();
    
    public abstract T generate();
    
    void setSeed(long seed) {
        generator.setSeed(seed);
    }

    public MersenneTwisterFast getGenerator() {
        return generator;
    }
    
}
